/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.springvision.yuanfeng.devlocal.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.springvision.yuanfeng.devlocal.entity.DevLocalTmp;
import com.springvision.yuanfeng.devlocal.mapper.DevLocalTmpMapper;

/**
 * 设备临时位置Service
 * 
 * @author ycb
 * @version 2019-01-16
 */
@Service
@Transactional(readOnly = true)
public class DevLocalTmpService extends CrudService<DevLocalTmpMapper, DevLocalTmp> {

	public DevLocalTmp get(String id) {
		return super.get(id);
	}

	public List<DevLocalTmp> findList(DevLocalTmp devLocalTmp) {
		return super.findList(devLocalTmp);
	}

	public List<DevLocalTmp> findAll(String staId) {
		return mapper.findAll(staId);
	}

	public Page<DevLocalTmp> findPage(Page<DevLocalTmp> page, DevLocalTmp devLocalTmp) {
		return super.findPage(page, devLocalTmp);
	}

	@Transactional(readOnly = false)
	public void save(DevLocalTmp devLocalTmp) {
		super.save(devLocalTmp);
	}

	@Transactional(readOnly = false)
	public void delete(DevLocalTmp devLocalTmp) {
		super.delete(devLocalTmp);
	}

	@Transactional(readOnly = false)
	public void deleteByStaId(String staId) {
		mapper.deleteByStaId(staId);
	}

}